package com.ddtech.models;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.ArrayList;
import java.util.List;

/**
 * @author pubin
 * @date 2022/7/7 16:04
 */
public abstract class BaseTreeBean<M> {

    private List<M> children = new ArrayList();

    @JsonIgnore
    public abstract String getIdValue();

    @JsonIgnore
    public abstract String getPidValue();


    public List<M> getChildren() {
        return this.children;
    }

    public void setChildren(List<M> children) {
        this.children = children;
    }
}